home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / velocity.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  116 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6.     <PROPS>
  7.         <PROPERTY NAME="commentStart" VALUE="#*" />
  8.         <PROPERTY NAME="commentEnd" VALUE="*#" />
  9.         <PROPERTY NAME="lineComment" VALUE="##" />
  10.         <!-- Auto indent -->
  11.         <PROPERTY NAME="indentNextLines" VALUE="^\s*(#(foreach|if|elseif|else))\s*\(.*\)\s*"/>
  12.         <PROPERTY NAME="unindentThisLine" VALUE="^\s*#(end|elseif|else)\b.*"/>
  13.     </PROPS>
  14.     <RULES IGNORE_CASE="TRUE">
  15.         <!-- SGML comment -->
  16.         <SPAN TYPE="COMMENT1">
  17.             <BEGIN><!--</BEGIN>
  18.             <END>--></END>
  19.         </SPAN>
  20.  
  21.         <!-- JavaScript -->
  22.         <SPAN TYPE="MARKUP" DELEGATE="JAVASCRIPT">
  23.             <BEGIN><SCRIPT</BEGIN>
  24.             <END></SCRIPT></END>
  25.         </SPAN>
  26.  
  27.         <!-- stylesheet -->
  28.         <SPAN TYPE="MARKUP" DELEGATE="CSS">
  29.             <BEGIN><STYLE</BEGIN>
  30.             <END></STYLE></END>
  31.         </SPAN>
  32.  
  33.         <!-- DTD instructions -->
  34.         <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
  35.             <BEGIN><!</BEGIN>
  36.             <END>></END>
  37.         </SPAN>
  38.  
  39.         <!-- markup tags -->
  40.         <SPAN TYPE="MARKUP" DELEGATE="html::TAGS">
  41.             <BEGIN><</BEGIN>
  42.             <END>></END>
  43.         </SPAN>
  44.  
  45.         <!-- SGML entities -->
  46.         <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  47.             <BEGIN>&</BEGIN>
  48.             <END>;</END>
  49.         </SPAN>
  50.         <IMPORT DELEGATE="VELOCITY" />
  51.     </RULES>
  52.  
  53.     <RULES SET="VELOCITY">
  54.         <SPAN TYPE="COMMENT2">
  55.             <BEGIN>#*</BEGIN>
  56.             <END>*#</END>
  57.         </SPAN>
  58.  
  59.         <EOL_SPAN TYPE="COMMENT3">##</EOL_SPAN>
  60.  
  61.         <SPAN TYPE="KEYWORD3" NO_LINE_BREAK="TRUE">
  62.             <BEGIN>${</BEGIN>
  63.             <END>}</END>
  64.         </SPAN>
  65.  
  66.         <SEQ_REGEXP HASH_CHAR="$" TYPE="KEYWORD3"
  67.             >\$!?[A-z][A-z0-9._-]*</SEQ_REGEXP>
  68.  
  69.         <KEYWORDS>
  70.             <KEYWORD1>#set</KEYWORD1>
  71.             <KEYWORD1>#foreach</KEYWORD1>
  72.             <KEYWORD1>#end</KEYWORD1>
  73.             <KEYWORD1>#if</KEYWORD1>
  74.             <KEYWORD1>#else</KEYWORD1>
  75.             <KEYWORD1>#elseif</KEYWORD1>
  76.             <KEYWORD1>#parse</KEYWORD1>
  77.             <KEYWORD1>#macro</KEYWORD1>
  78.             <KEYWORD1>#stop</KEYWORD1>
  79.             <KEYWORD1>#include</KEYWORD1>
  80.         </KEYWORDS>
  81.     </RULES>
  82.  
  83.     <RULES SET="JAVASCRIPT" DEFAULT="MARKUP" IGNORE_CASE="TRUE">
  84.         <SEQ TYPE="MARKUP" DELEGATE="JAVASCRIPT2">></SEQ>
  85.         <!-- handle <SCRIPT SRC="..."> properly -->
  86.         <SEQ TYPE="MARKUP" DELEGATE="BACK_TO_HTML">SRC=</SEQ>
  87.     </RULES>
  88.  
  89.     <RULES SET="JAVASCRIPT2"
  90.         IGNORE_CASE="FALSE"
  91.         HIGHLIGHT_DIGITS="TRUE"
  92.         DIGIT_RE="(0x[\p{XDigit}]+[lL]?|[\p{Digit}]+(e[\p{Digit}]*)?[lLdDfF]?)">
  93.  
  94.         <IMPORT DELEGATE="VELOCITY" />
  95.         <IMPORT DELEGATE="javascript::MAIN" />
  96.     </RULES>
  97.  
  98.     <RULES SET="BACK_TO_HTML" DEFAULT="MARKUP">
  99.         <SEQ TYPE="MARKUP" DELEGATE="MAIN">></SEQ>
  100.     </RULES>
  101.  
  102.     <RULES SET="CSS" DEFAULT="MARKUP">
  103.         <SEQ TYPE="MARKUP" DELEGATE="CSS2">></SEQ>
  104.     </RULES>
  105.  
  106.     <RULES SET="CSS2"
  107.         IGNORE_CASE="TRUE"
  108.         HIGHLIGHT_DIGITS="TRUE"
  109.         DIGIT_RE="[\p{Digit}]+(pt|pc|in|mm|cm|em|ex|px|ms|s|%)"
  110.         NO_WORD_SEP="-_">
  111.  
  112.         <IMPORT DELEGATE="VELOCITY" />
  113.         <IMPORT DELEGATE="css::MAIN" />
  114.     </RULES>
  115. </MODE>
  116.